package com.cloud.api.domain.tsp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author haohaibo
 * @since 2023-12-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_command_log")
@Schema(name = "CommandLog", description = "指令日志表")
public class CommandLog extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @Schema(description = "车型id")
    @TableField("model_id")
    private String modelId;

    @Schema(description = "指令id")
    @TableField("command_id")
    private String commandId;

    @Schema(description = "指令名称",hidden = true)
    @TableField("name")
    private String commandName;

    @Schema(description = "操作类型")
    @TableField("operate_type")
    private String operateType;

    @Schema(description = "变更前状态")
    @TableField("old_status")
    private Integer oldStatus;

    @Schema(description = "变更后状态")
    @TableField("new_status")
    private Integer newStatus;

    @Schema(description = "变更内容",hidden = true)
    @TableField(exist = false)
    private String content;

}
